#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QString>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit MyPushButton (QWidget *parent = 0);

    MyPushButton(QString normalImg, QString pressImg = "");

    //写两个弹跳特效函数
    void zoom1();   //向下跳
    void zoom2();   //向上跳

    //重写鼠标按下事件
    //其实这是按钮的事件
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
private:
    //两个路径
    QString normalImgPath;
    QString pressImgPath;

signals:

public slots:

};

#endif // MYPUSHBUTTON_H
